<?
    class PrincipioLab_Validate_Condition
    {
        private $message;


        public function __construct($message)
        {
            $this->message = $message;
        }


        public function isValid($value)
        {
            if ($value === false)
            {
                PrincipioLab_Messages::error($this->message);
                return false;
            };

            return true;
        }


        public static function checkValid($value, $message)
        {
            if ($value === false)
            {
                PrincipioLab_Messages::error($message);
                return false;
            };

            return true;
        }


        public function getMessages()
        {
            return array();
        }
    }
?>